package gulimall.feign;

import gulimall.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author HLF
 * @date 2022/8/30 21:49
 */
@Service
@FeignClient(value = "gulimall-cart")
public interface CartFeignService {

    /**
     * 获取指定用户id所有 选中的购物项
     */
    @GetMapping("/getCheckItem/{memberId}")
    @ResponseBody
    R getCheckItem(@PathVariable("memberId") Long memberId);
}
